package com.lifa.controller;

import com.lifa.dao.CaoZuoLeiXingDao;
import com.lifa.entity.Caozuoleixing;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/caozuoleixing")
@Scope("prototype")
public class CaoZuoLeiXingController {

    @Autowired
    private CaoZuoLeiXingDao caoZuoLeiXingDao;

    @RequestMapping("/chax1")
    @ResponseBody
    public List<Caozuoleixing> chax1(){
       return caoZuoLeiXingDao.chax();
    }



}
